﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Threading;
using System.Web;
using System.Web.Mvc;
using DonutMgmtSystemFoundation.Helpers;

namespace DonutMgmtSystemFoundation.Controllers
{
    public class BaseController : Controller
    {
        public BaseController()
        {
            var cultureString = SessionContext.GetLanguage();
            var cultureInfo = CultureInfo.CreateSpecificCulture(cultureString);
            Thread.CurrentThread.CurrentCulture = cultureInfo;
            Thread.CurrentThread.CurrentUICulture = cultureInfo;
        }
    }
}